<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductSku extends Model
{
    protected $fillable = [
        'product_id',
        'price',
        'type',
    ];

//    protected $casts = [
//        'type' => 'array'
//    ];

    public function product()
    {
        return $this->belongsTo(Product::class, 'product_id');
    }

//    public function setTypeAttribute($input)
//    {
//        $this->attributes['type'] = 'a';
//    }
}
